const App = getApp()
Page({
data: {
          swipers1: [],
currentIndex1:0,
     grids2:[],
     msgs3:[]
},
showModal(message) {
   App.WxService.showModal({
    	title: '友情提示',
    	content: message,
    	showCancel: !1,
   });
},
onLoad(option) {
	if (option){
      this.setData({
         globalOption: option
      })
    }
},
onShow(){
     this.getSwipers1();
     this.getGrids2();
     this.getMsgs3();
},
navigateTo(e) {
    App.navigateTo(e.currentTarget.dataset.url,e.currentTarget.dataset);
},
getSwipers1(){
	  //调用数据
	  var datas=[
	  	 {thumb_url:'/assets/images/a1.jpg'},
	  	 {thumb_url:'/assets/images/a2.jpg'},
	  	 {thumb_url:'/assets/images/a3.jpg'}
	  ];
      this.setData({
          swipers1: datas
      });
},
getGrids2(){
	  //调用数据
	  var datas=[
	  	 {thumb_url:'/assets/images/b1.jpg',url:App.renderUrl('page2','index'),title:'婚纱照'},
	  	 {thumb_url:'/assets/images/b2.jpg',url:App.renderUrl('page2','index'),title:'艺术照'},
       {thumb_url:'/assets/images/b3.jpg',url:App.renderUrl('page2','index'),title:'儿童照'},
       {thumb_url:'/assets/images/b4.jpg',url:App.renderUrl('page2','index'),title:'宝妈照'},
       {thumb_url:'/assets/images/b5.jpg',url:App.renderUrl('page2','index'),title:'淘宝产品照'},
       { thumb_url:'/assets/images/b6.jpg',url:App.renderUrl('page2','index'),title:'公司形象照'}
	  ];
      this.setData({
          grids2: datas
      });
},
getMsgs3(){
	  //调用数据
	  var datas=[
	  	 {thumb_url:'/assets/images/c1.jpg',title:'套餐一',desc:'说明文字'},
	  	 {thumb_url:'/assets/images/c2.jpg',title:'套餐二',desc:'说明文字'},
	  	 {thumb_url:'/assets/images/c3.jpg',title:'套餐三',desc:'说明文字'}
	  ];
      this.setData({
          msgs3: datas
      });
}

})
